function check_member() {
	$(".msg").html("");
	$(".inputm").removeClass("fault");

	var user_pwd1= $("#password1").val();
	var user_pwd2 = $("#password2").val();
	var user_pwd3 = $("#password3").val();


	if (user_pwd1 == '') {
		$("#password1").addClass("fault");
    	$("#msg1").html("请输入旧密码");
		return false;
	}else if (user_pwd2 == '') {
		$("#password2").addClass("fault");
    	$("#msg2").html("请输入新密码");
		return false;
	}else if (user_pwd3 == '') {
		$("#password3").addClass("fault");
    	$("#msg3").html("请输入确认密码");
		return false;
	}else if (user_pwd3 != user_pwd2) {
		$("#password3").addClass("fault");
    	$("#msg3").html("两次输入的密码不一致");
		return false;
	} else {
		//ajax提交
        var passCount = 0;
        var pwdLength = user_pwd2.length;
        var f1 = /[a-z]/.test(user_pwd2) &&  passCount++;
        var f2 = /[A-Z]/.test(user_pwd2) &&  passCount++;
        var f3 = /[0-9]/.test(user_pwd2) &&  passCount++;
        var f4 = /[\W]/.test(user_pwd2) &&  passCount++;


        if( pwdLength < 8 || passCount < 3){
            $("#password2").addClass("fault");
            $("#msg2").html("密码必须同时由大小写字母、数字、特殊符号组成，至少8位");
            return false;
        }
        	 $.ajax({
        		   url: "/index.php?action=password&user_pwd1="+user_pwd1+"&user_pwd2="+user_pwd2+"&actionc=ajaxpost",
        		   type: "POST",
	    		   cache : false,
        		   success: function(msg){
        		    if(msg == 1){
        		    	success();
        		    }else if(msg == 2){
        		    	$("#password1").addClass("fault");
        		    	$("#msg1").html("原始输入错误");
        		    	alert('原始密码输入错误');
        		    	return false;
        		    }else{
        		    	 alert('出错了，请刷新重试');
         		    	return false;
        		    }
        		   },
        		   error:function(){
        			   alert('出错了，请刷新重试');
       		    		return false;
        		   }
        		});

	}
}

//密码修改成功提示信息
function success(){
	art.dialog({
		id: 'dialogSuss',
		content: document.getElementById('dialogSuss'),
		title: '信息提示',
		skin: "greenbox",
		width: 380,
		opacity: 0.2,
		lock: true,
		padding: 10,
		drag: true,
		resize: false,
		close: function () {
		}
	});
}

